package com.tutorial.sqlSession;

import com.tutorial.pojo.Configuration;

/**
 * 默认SqlSession工厂实现类
 *
 * @author: GXW
 * @since: 2025-10-29 09:05:38
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession opSession() {
        return new DefaultSqlSession(configuration);
    }
}
